marbleRaceLevelT2={
	name: 'Test Level 2',
	id: 'T2',
	type:'elimination',
	eliminated:9,
	objects: [
		// Portals
		{
			type: 'object',
			shape: 'rect',
			color:'@a',
			toPortal:'a',
			x: 210,
			y: 540-10,
			width: 260,
			height: 20
		},
		{
			type: 'object',
			shape: 'rect',
			color:'@goal',
			toPortal:'goal',
			isGoal:true,
			x: 470,
			y: 540-10,
			width: 260,
			height: 20
		},
		{
			type: 'object',
			shape: 'circle',
			color:'@a',
			portalID:'a',
			x: 340,
			y: 80,
			radius:5
		},

		// Goal portal
		{
			type: 'object',
			shape: 'circle',
			color:'@goal',
			portalID:'goal',
			x: 700,
			y: 80,
			radius:5
		},

		// Obstacles
		{
			type: 'object',
			shape: 'circle',
			color:'@secondary',
			x: 400,
			y: 300,
			radius:40,
			onCollide:function(object,marbleID,engine){
				object.color=engine.marbleConfigColor[marbleID].color
			},
			onBeforeUpdate:function(object,engine){
				engine.setPosition(object.body,[340+200*Math.sin(2*engine.time),300])
			}
		},

		// Borders
		{
			type: 'object',
			shape: 'rect',
			color:'@tertiary',
			x: 400,
			y: 0,
			width: 800,
			height: 120
		},
		{
			type: 'object',
			shape: 'rect',
			color:'@tertiary',
			x: 400,
			y: 600,
			width: 800,
			height: 120
		},
		{
			type: 'object',
			shape: 'rect',
			color:'@tertiary',
			x: 0,
			y: 300,
			width: 160,
			height: 600
		},
		{
			type: 'object',
			shape: 'rect',
			color:'@tertiary',
			x: 800,
			y: 300,
			width: 160,
			height: 600
		},
		{
			type: 'object',
			shape: 'rect',
			color:'@tertiary',
			x: 640,
			y: 300,
			width: 80,
			height: 600
		},

		// Marbles
		{
			type: 'marbles',
			x: 340,
			y: 80,
			launchTime: 3,
			launchRadius: 75,
			radius:8,
			velocity:5
		},
	]
}
marbleRaceLevels.push(marbleRaceLevelT2)